package day12.properties;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

/**
 * @author Xiao
 * @date 2021/8/3
 */
public class PropertiesDemo03 {
    /**
     * void load(Reader reader):
     * 		将本地文件中的键值对数据读取到集合中
     */
    public static void main(String[] args) throws IOException {
        Properties p = new Properties();
        FileReader fr = new FileReader(
                "videoPractice\\src\\day12\\properties\\prop1.properties");
        p.load(fr);
        fr.close();
        System.out.println(p);
    }
}
